<?php
/* Smarty version 3.1.30, created on 2016-12-04 15:31:27
  from "D:\wamp64\www\smartyone\blog\templates\index.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5843c64fab7309_44962578',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '379db871cf101c262d073d967605447ef6e2958f' => 
    array (
      0 => 'D:\\wamp64\\www\\smartyone\\blog\\templates\\index.html',
      1 => 1480836685,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5843c64fab7309_44962578 (Smarty_Internal_Template $_smarty_tpl) {
?>
<!DOCTYPE html static "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>武汉长乐教育PHP课程-博客系统开发</title>
    <link href="../static/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
    <div id="innerHeader">
        <div id="blogLogo"></div>
        <div class="blog-header">
            <div class="blog-title"><IMG SRC="../static/images/logo.png"  style="border:1px solid gray" BORDER="0" ALT="" align="absmiddle"> <a href="http://www.whphp.com">WHPHP</a></div>
            <div class="blog-desc">武汉长乐教育PHP课程-博客系统开发</div>
        </div>
        <div id="menu">
            <ul>
                <li><a href="">日志首页</a></li>
                <li><a href="/add.php">撰写日志</a></li>
                <li><a href="">官方网站</a></li>
            </ul>
        </div>
    </div>
</div>
<!--中间部分-->
<div id="mainWrapper">
    <div id="content" class="content">
        <div id="innerContent">
            <div class="announce text" style="border:1px solid silver;padding:5px;font-size:14px;">
                <h4 style="color:#FF3300"><img src="../static/images/wav.gif" width="18" height="18" border="0" alt="" align="absmiddle"> 简单的BLOG示例</h4>
                本示例Blog包括日志的新增、修改、列表、统计、评论和删除等功能,可以作为入门PHP的绝佳示例。<P>请按照下面步骤操作，增加分类、添加日志、增加评论。
            </div>
            <!--
            <div class="article-top">
                <div class="view-mode">浏览模式: <a href="?mode=normal">普通</a> | <a href="?mode=list">列表</a></div><div class="pages">{$page}</div>
            </div>
            -->

            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['articles']->value, 'v', false, 'k');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
?>
            <div>

                <div class="textbox-title">
                    <h4>
                        <img src="../static/images/icon_point2.gif" width="13" height="13" border="0" alt="" align="absmiddle">
                        <a href="/show.php?id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a>
                    </h4>
                    <div class="textbox-label">
                        [ <?php echo date('Y-m-d H:i:s',$_smarty_tpl->tpl_vars['v']->value['time']);?>
 | <a href="#"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</a>]
                    </div>
                </div>
                <div class="textbox-content">
                    <?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>

                </div>
                <div class="textbox-bottom"> 
					[ 管理：<a href="/edit.php?id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">编辑</a> <a href="/del.php?id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">删除</a> ]
					| <a href="#">评论: 15</a> | 浏览: 20
				</div>
            </div>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

        </div>
    </div>

    <div id="sidebar" class="sidebar">
        <div id="innerSidebar">
            <div id="panelSearch" class="panel">
                <div id="panelStats" class="panel">
                    <h5>统计数据</h5>
                    <div class="panel-content">
                        日志总数：<span style="color:#CC9933">12</span><br />
                        阅读总数：<span style="color:#6699FF">30</span><br />
                        评论总数：<span style="color:#FF9900">50</span><br />
                    </div>
                </div>
                <h5 >日志分类 </h5>
                <div class="panel-content">
                    <ul id="category">
                        <li>
                            <form action="index.php" method="post">
                            <div class="fLeft" >
                                <input TYPE="text" id="categoryName" class="text" NAME="name">
                            </div>
                            <input TYPE="submit" value="增 加" class="submit hMargin small"></form>
                            <br style="clear:both;float:auto"/>
                        </li>
                        <volist name="category" id="vo">
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['total']->value['categories'], 'c');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['c']->value) {
?>
                            <li>
                                <img src="../static/images/folder.gif" width="18" height="18" border="0" alt="" align="absmiddle">
                                <a href="#"><?php echo $_smarty_tpl->tpl_vars['c']->value['name'];?>
</a>
                                <span>(<?php echo $_smarty_tpl->tpl_vars['c']->value['num'];?>
)</span>
                                <img src="../static/images/del.gif" style="cursor:pointer" width="20" height="20" border="0" alt="" >
                            </li>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                        </volist>
                    </ul>
                </div>
            </div>
            <div id="panelSearch" class="panel">
                <h5 >最新日志</h5>
                <div class="panel-content">
                    <ul>

                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['total']->value['last_articles'], 'c');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['c']->value) {
?>

						<li>
							<img src="../static/images/icon_ctb.gif" width="11" height="11" border="0" alt="" align="absmiddle"/>
							<a href="#" title="<?php echo $_smarty_tpl->tpl_vars['c']->value['title'];?>
"><?php echo $_smarty_tpl->tpl_vars['c']->value['title'];?>
</a>
							<sup style="color:silver;font-size:12px">
								[<span style="color:#3366CC">20<!-- 阅读数 --></span> |<span style="color:#FF6600"> <?php echo $_smarty_tpl->tpl_vars['c']->value['num'];?>
<!-- 评论数 --></span>]
							</sup>
						</li>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>


                    </ul>
                </div>
            </div>
            <div id="panelSearch" class="panel">
                <h5 >最新评论</h5>
                <div class="panel-content">
                    <ul>
                        <volist id="vo" name="lastComments">
                            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['total']->value['comments'], 'c');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['c']->value) {
?>
                            <li>
                                <img src="../static/images/Comment.gif" width="9" height="9" border="0" alt="" align="absmiddle">
                                <a href="#"> <span style="color:#3366CC"><?php echo $_smarty_tpl->tpl_vars['c']->value['nickname'];?>
</span></a>：
								<a href="#" title=""><?php echo $_smarty_tpl->tpl_vars['c']->value['content'];?>
！</a>
                            </li>
                            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                        </volist>
                    </ul>
                </div>
            </div> 
        </div>
    </div>
</div>
<!-- 版权信息区域 -->
<div id="footer" class="footer" >
    <div id="innerFooter">Powered by 武汉长乐教育 |  <a target="_blank" href="http://www.whphp.com">whphp</a></div>
</div>
</body>
</html><?php }
}
